package top.lt.lt_ssm.bean;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class orders {
	private int oid;

	private Integer orderId;

	private int uid;

	private Integer pid;

	private String addressid;

	private Double price;

	private Date createTime;

	private Date endTime;

	private String state;

	private String nikename;

	private String pname;

	@Override
	public String toString() {
		return "orders [oid=" + oid + ", orderId=" + orderId + ", uid=" + uid + ", pid=" + pid + ", addressid="
				+ addressid + ", price=" + price + ", createTime=" + createTime + ", endTime=" + endTime + ", state="
				+ state + ", nikename=" + nikename + ", pname=" + pname + "]";
	}

	public orders() {
	}

	public orders(int oid, Integer orderId, int uid, Integer pid, String addressid, Double price, Date createTime,
			Date endTime, String state, String nikename, String pname) {
		super();
		this.oid = oid;
		this.orderId = orderId;
		this.uid = uid;
		this.pid = pid;
		this.addressid = addressid;
		this.price = price;
		this.createTime = createTime;
		this.endTime = endTime;
		this.state = state;
		this.nikename = nikename;
		this.pname = pname;
	}

	public Integer getOid() {
		return oid;
	}

	public void setOid(Integer oid) {
		this.oid = oid;
	}

	public Integer getOrderId() {
		return orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	public int getUid() {
		return uid;
	}

	public void setUid(int uid) {
		this.uid = uid;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getAddressid() {
		return addressid;
	}

	public void setAddressid(String addressid) {
		this.addressid = addressid;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	public Date getCreateTime() {
		return createTime;
	}

	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	public Date getEndTime() {
		return endTime;
	}

	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state == null ? null : state.trim();
	}

	public String getNikename() {
		return nikename;
	}

	public void setNikename(String nikename) {
		this.nikename = nikename;
	}

	public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public void setOid(int oid) {
		this.oid = oid;
	}

}